#pragma once
#include"stdafx.h"
#include"accountStateZYZ.h"

class chatGroupZYZ
{
public:
	static int maxGroupID;
	int groupID;
	std::string groupName;
	std::set<int> memberIDs;
	int masterID;
	virtual accountStateZYZ* getState()=0;
	virtual bool exists(int id);
	virtual void write2File()=0;
	static bool findGroup(std:: string servicename,int ID);
protected:
	chatGroupZYZ();
	chatGroupZYZ(int gID, std::string gName, int masterID, std::set<int> memberID);
};

